<template>
	<div id="allmap"></div>
</template>

<script>
import { defineComponent } from 'vue'

export default defineComponent({
	mounted() {
		// var map = new BMapGL.Map('allmap')
		// map.centerAndZoom(new BMapGL.Point(104.046299,30.63575), 19)
		// map.enableScrollWheelZoom(true)
		// map.setHeading(64.5)
		// map.setTilt(73)

		var map = new BMapGL.Map('allmap') // 创建Map实例
		map.centerAndZoom(new BMapGL.Point(104.046299,30.63575), 12) // 初始化地图,设置中心点坐标和地图级别
		map.enableScrollWheelZoom(true) // 开启鼠标滚轮缩放
	},
})
</script>

<style lang="scss" scoped>
#allmap {
	height: calc(100% - 30px);
}
</style>
